package com.sxhuayuan.parking.plugin.partnerpay;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.sxhuayuan.parking.config.Platform;

//@Component("partnerpayApiServiceFactory")
public class PartnerpayApiServiceFactory {

	@Resource
	private Map<String, PartnerpayApiService> map = new HashMap<>();

	public PartnerpayApiService getService(Platform platform) {
		return map.get(platform.name() + "PartnerpayApiServiceImpl");
	}
}
